package com.ltkj.shop.domain.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ltkj.common.core.annotation.Excel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Arrays;
import java.util.Date;

@ApiModel("商品上下架参数")
public class ShopGoodsParams {

    /** 商品id集合 */
    @ApiModelProperty("商品id集合")
    @NotNull(message = "商品ID不能为空")
    private Long[] ids;

    /** 状态（0下架 1上架） */
    @ApiModelProperty("状态（0下架 1上架）")
    @NotEmpty(message = "状态不能空")
    private String status;

    /** 上下架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date onOffTime;

    /** 修改人 */
    private String updateBy;

    public Long[] getIds() {
        return ids;
    }

    public void setIds(Long[] ids) {
        this.ids = ids;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getOnOffTime() {
        return onOffTime;
    }

    public void setOnOffTime(Date onOffTime) {
        this.onOffTime = onOffTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public String toString() {
        return "ShopGoodsParams{" +
                "ids=" + Arrays.toString(ids) +
                ", status='" + status + '\'' +
                ", onOffTime=" + onOffTime +
                ", updateBy='" + updateBy + '\'' +
                '}';
    }
}
